<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">

<title>Bienvenid@ a nuestra Pizzeria!!!</title>
<link rel="stylesheet" type="text/css" href="Styles.css">
</head>

<body>
<table border="0" cellpadding="0" cellspacing="4" width="800"
	align="center">
	<tbody>
		<tr>
			<td colspan="2"><%@ include file="header.jsp" %></td>
		</tr>
		<tr>
			<td valign="top" width="160"><%@ include file="menu.jsp" %></td>
			<!--Aqui van los detalles -->
			<td valign="top" align="center" background="images/sarpinos-pizza-01.jpg">
			<br>
			<div class="NormalLarge">Detalles del Pedido</div>
			<table>
				<tr class="Estilo1">
					<th align="left">Producto</th>
					<th>Precio</th>
				</tr>
				<%
					int total=0;
					if (detalles != null) {						
						for (String linea : detalles.split(",")) {
							int importe=Integer.parseInt(linea.split("\\|")[1]);
							total+= importe;
				%>
				<tr>
					<td><%=linea.split("\\|")[0]%></td>
					<td align="right"><%=importe%></td>
				</tr>
				<%
						}
					}
				%>
				<tr style="color: #006600;font-weight: bold;" >
					<td>Total Pedido:</td>
					<td align="right"><%=total%></td>
				</tr>
			</table>
			<br>
			<form action="checkout.jsp" method="post"><input id="detalles"
				name="detalles" value="<%=detalles%>" type="hidden"> <input
				type="button" value="Cancelar" onClick="location.href='index.jsp'"
				class="Estilo1"> <input name="pedir" value="Pedir"
				type="submit" class="Estilo1"></form>

			<!-- Fin de detalles --></td>

		</tr>
		<tr>
			<td colspan="2"><%@ include file="footer.jsp" %></td>
		</tr>
</table>


</body>
</html>